package com.ruoyi.subject.service;

import com.ruoyi.subject.domain.QbSubjectItem;

import java.util.List;

/**
 * 题项Service接口
 * 
 * @author lzhj
 * @date 2021-01-20
 */
public interface IQbSubjectItemService 
{
    /**
     * 查询题项
     * 
     * @param id 题项ID
     * @return 题项
     */
    public QbSubjectItem selectQbSubjectItemById(Long id);

    /**
     * 查询题项列表
     * 
     * @param qbSubjectItem 题项
     * @return 题项集合
     */
    public List<QbSubjectItem> selectQbSubjectItemList(QbSubjectItem qbSubjectItem);

    /**
     * 新增题项
     * 
     * @param qbSubjectItem 题项
     * @return 结果
     */
    public int insertQbSubjectItem(QbSubjectItem qbSubjectItem);

    /**
     * 修改题项
     * 
     * @param qbSubjectItem 题项
     * @return 结果
     */
    public int updateQbSubjectItem(QbSubjectItem qbSubjectItem);

    /**
     * 批量删除题项
     * 
     * @param ids 需要删除的题项ID
     * @return 结果
     */
    public int deleteQbSubjectItemByIds(Long[] ids);

    /**
     * 删除题项信息
     * 
     * @param id 题项ID
     * @return 结果
     */
    public int deleteQbSubjectItemById(Long id);

    /**
     * 批量新增
     * @param qbSubjectItems
     */
    void insertQbSubjectItemList(List<QbSubjectItem> qbSubjectItems);

    /**
     * 根据题目id查询题项
     * @param subjectId
     * @return
     */
    List<QbSubjectItem> selectQbSubjectItemBySubjectId(Long subjectId);

}
